package com.dzx.design.structural.proxy.staticproxy;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月09日 09:46:10
 */
public class OrderServiceImpl implements IOrderService {

    private IOrderDao iOrderDao;

    @Override
    public int saveOrder(Order order) {
        //spring会自动注入，这里就直接new了
        iOrderDao = new OrderDaoImpl();
        System.out.println("service层调用dao层添加Order");
        return iOrderDao.insert(order);
    }
}
